package com.campus.campus.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.campus.campus.job.entity.UtilityConsumptionRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 水电费消耗记录表 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2024-11-30
 */
public interface UtilityConsumptionRecordMapper extends BaseMapper<UtilityConsumptionRecord> {

    List<UtilityConsumptionRecord> getList(@Param("startOfYesterday") String startOfYesterday,
                                           @Param("endOfToday") String endOfToday,
                                           @Param("cardId") Integer cardId);

    List<UtilityConsumptionRecord> getListWater(@Param("startOfYesterday") String startOfYesterday,
                                                @Param("endOfToday") String endOfToday,
                                                @Param("cardId") Integer cardId);
}
